import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 本地图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue';

import router from './router'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import i18n from '@/lang'

import pinia from './store'

const app = createApp(App)

app.use(ElementPlus)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.component('svg-icon', SvgIcon)//组件注册

app.use(router)

app.use(i18n)

app.use(pinia)

app.mount('#app')
